package com.example.cocos_standard;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.google.gson.Gson;
import com.liyan.cocos_standard.CocosManager;
import com.liyan.cocos_standard.bean.LYRealName;
import com.liyan.cocos_standard.invoke.common.CCInvoked;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void login(View view) {
        LYRealName lyRealName = new LYRealName();
        lyRealName.realName = "sun";
        lyRealName.CardID = "123456";
        CCInvoked.invoke(24, new Gson().toJson(lyRealName));

        Toast.makeText(CocosManager.instance().getContext(), "你好", Toast.LENGTH_SHORT).show();
    }
}